<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>http | 个人博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="net 12345678910111213141516171819202122232425262728293031const net &#x3D; require(&amp;#x27;net&amp;#x27;);&#x2F;&#x2F; 我们只是做了一层封装const server &#x3D; net.createServer(function (socket) &amp;#123;    socket.on(&amp;#x27;data&amp;#x27;, func">
<meta property="og:type" content="article">
<meta property="og:title" content="http">
<meta property="og:url" content="https://gitee.com/wieldy/bailment-blog/2022/03/29/http/index.html">
<meta property="og:site_name" content="个人博客">
<meta property="og:description" content="net 12345678910111213141516171819202122232425262728293031const net &#x3D; require(&amp;#x27;net&amp;#x27;);&#x2F;&#x2F; 我们只是做了一层封装const server &#x3D; net.createServer(function (socket) &amp;#123;    socket.on(&amp;#x27;data&amp;#x27;, func">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2022-03-29T14:12:00.000Z">
<meta property="article:modified_time" content="2023-04-23T12:11:43.651Z">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/bailment-blog/atom.xml" title="个人博客" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/bailment-blog/favicon.png">
  
  
    
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-source-code-pro@0.0.71/index.min.css">

  
  
<link rel="stylesheet" href="/bailment-blog/css/style.css">

  
    
<link rel="stylesheet" href="/bailment-blog/fancybox/jquery.fancybox.min.css">

  
<meta name="generator" content="Hexo 6.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/bailment-blog/" id="logo">个人博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/bailment-blog/">Home</a>
        
          <a class="main-nav-link" href="/bailment-blog/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/bailment-blog/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://gitee.com/wieldy/bailment-blog"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-http" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/bailment-blog/2022/03/29/http/" class="article-date">
  <time class="dt-published" datetime="2022-03-29T14:12:00.000Z" itemprop="datePublished">2022-03-29</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      http
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <ul>
<li><p>net</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> net = <span class="built_in">require</span>(<span class="string">&#x27;net&#x27;</span>);</span><br><span class="line"></span><br><span class="line"><span class="comment">// 我们只是做了一层封装</span></span><br><span class="line"><span class="keyword">const</span> server = net.<span class="title function_">createServer</span>(<span class="keyword">function</span> (<span class="params">socket</span>) &#123;</span><br><span class="line">    socket.<span class="title function_">on</span>(<span class="string">&#x27;data&#x27;</span>, <span class="keyword">function</span> (<span class="params">data</span>) &#123;</span><br><span class="line">        <span class="comment">// 请求行：请求方法 请求路径 版本号</span></span><br><span class="line">        <span class="comment">// 请求头：key: value</span></span><br><span class="line">        <span class="comment">// 空行</span></span><br><span class="line">        <span class="comment">// 请求体</span></span><br><span class="line"></span><br><span class="line">        <span class="comment">// 响应行： 版本号  状态码</span></span><br><span class="line">        socket.<span class="title function_">end</span>(<span class="string">`</span></span><br><span class="line"><span class="string">            HTTP/1.1 200 OK</span></span><br><span class="line"><span class="string">            Content-Length: 5</span></span><br><span class="line"><span class="string">            hello</span></span><br><span class="line"><span class="string">        `</span>)</span><br><span class="line">    &#125;);</span><br><span class="line">    socket.<span class="title function_">on</span>(<span class="string">&#x27;end&#x27;</span>, <span class="keyword">function</span> (<span class="params"></span>) &#123;</span><br><span class="line"></span><br><span class="line">    &#125;)</span><br><span class="line">&#125;)</span><br><span class="line">server.<span class="title function_">on</span>(<span class="string">&#x27;error&#x27;</span>, <span class="keyword">function</span> (<span class="params">err</span>) &#123;</span><br><span class="line">    <span class="variable language_">console</span>.<span class="title function_">log</span>(err);</span><br><span class="line">&#125;)</span><br><span class="line">server.<span class="title function_">listen</span>(<span class="number">8080</span>); <span class="comment">// 监听8080端口</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">// 用工具监听文件变化，文件变化后可以自动重启</span></span><br><span class="line"><span class="comment">// nodemon  pm2 supervisor ...</span></span><br><span class="line"><span class="comment">// npm install nodemon -g</span></span><br><span class="line"><span class="comment">// nodemon 1.net.js</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>server</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><span class="line"></span><br><span class="line"><span class="keyword">const</span> http = <span class="built_in">require</span>(<span class="string">&#x27;http&#x27;</span>); <span class="comment">// 内置的模块 专门处理http请求的</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// 底层基于net模块（基于tcp来实现的，请求到来的时候会触发socket来监听数据到来，手动解析用户的参数）</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// 这是基于http实现的服务器，将报文已经解析好了</span></span><br><span class="line"><span class="comment">// req代表客户端的内容 </span></span><br><span class="line"><span class="comment">// res代表的是要给响应写数据</span></span><br><span class="line"><span class="keyword">let</span> server = http.<span class="title function_">createServer</span>(<span class="function">(<span class="params">req, res</span>) =&gt;</span> &#123; <span class="comment">// req.push(123)  req.push(null)</span></span><br><span class="line">    <span class="comment">// 请求方法 请求路径 版本号</span></span><br><span class="line">    <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">method</span>); <span class="comment">// 获取请求的方法  请求方法是大写的 </span></span><br><span class="line">    <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">url</span>); <span class="comment">// 路径是包含查询参数的,不会获取到hash值 （hash路由是不能做seo优化的）</span></span><br><span class="line">    <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">httpVersion</span>); <span class="comment">// 版本号</span></span><br><span class="line">    <span class="keyword">let</span> arr = [];</span><br><span class="line">    req.<span class="title function_">on</span>(<span class="string">&#x27;data&#x27;</span>, <span class="keyword">function</span> (<span class="params">chunk</span>) &#123;</span><br><span class="line">        arr.<span class="title function_">push</span>(chunk);</span><br><span class="line">    &#125;);</span><br><span class="line">    req.<span class="title function_">on</span>(<span class="string">&#x27;end&#x27;</span>, <span class="keyword">function</span> (<span class="params">chunk</span>) &#123;</span><br><span class="line">        <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title class_">Buffer</span>.<span class="title function_">concat</span>(arr).<span class="title function_">toString</span>())</span><br><span class="line">    &#125;);</span><br><span class="line">    <span class="comment">// 请求相关的信息</span></span><br><span class="line">    <span class="comment">// 解析响应相关的</span></span><br><span class="line"></span><br><span class="line">    <span class="comment">// res.statusCode = 454; // 状态码可以瞎写 就失去了意义</span></span><br><span class="line">    <span class="comment">// res.statusMessage = &#x27;wusiwu&#x27;</span></span><br><span class="line">    res.<span class="title function_">setHeader</span>(<span class="string">&#x27;Content-Type&#x27;</span>, <span class="string">&#x27;text/plain;charset=utf-8&#x27;</span>);</span><br><span class="line">    res.<span class="title function_">write</span>(<span class="string">&#x27;hello&#x27;</span>);</span><br><span class="line">    res.<span class="title function_">write</span>(<span class="string">&#x27;world&#x27;</span>);</span><br><span class="line">    res.<span class="title function_">end</span>(<span class="string">&#x27;你好&#x27;</span>);</span><br><span class="line">&#125;)</span><br><span class="line"><span class="comment">// server.on(&#x27;request&#x27;, function () &#123;</span></span><br><span class="line"><span class="comment">//     console.log(&#x27;request1&#x27;)</span></span><br><span class="line"><span class="comment">// &#125;)</span></span><br><span class="line"><span class="keyword">let</span> port = <span class="number">3000</span>;</span><br><span class="line">server.<span class="title function_">listen</span>(port, <span class="keyword">function</span> (<span class="params"></span>) &#123;</span><br><span class="line">    <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">&#x27;server start &#x27;</span> + port);</span><br><span class="line">&#125;);</span><br><span class="line">server.<span class="title function_">on</span>(<span class="string">&#x27;error&#x27;</span>, <span class="keyword">function</span> (<span class="params">err</span>) &#123;</span><br><span class="line">    <span class="keyword">if</span> (err &amp;&amp; err.<span class="property">code</span> === <span class="string">&#x27;EADDRINUSE&#x27;</span>) &#123; <span class="comment">// 可以监听端口号被占用 重新监听一个请求</span></span><br><span class="line">        server.<span class="title function_">listen</span>(++port)</span><br><span class="line">    &#125;</span><br><span class="line">&#125;)</span><br></pre></td></tr></table></figure>
</li>
<li><p>mock</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable language_">module</span>.<span class="property">exports</span> = <span class="keyword">function</span> (<span class="params">pathname, req, res</span>) &#123;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">if</span> (pathname === <span class="string">&#x27;/user&#x27;</span>) &#123;</span><br><span class="line">        <span class="keyword">if</span> (req.<span class="property">method</span> === <span class="string">&#x27;GET&#x27;</span>) &#123;</span><br><span class="line">            <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">query</span>);</span><br><span class="line">            res.<span class="title function_">end</span>(<span class="string">&#x27;ok&#x27;</span>)</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (req.<span class="property">method</span> === <span class="string">&#x27;POST&#x27;</span>) &#123;</span><br><span class="line">            <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">body</span>);</span><br><span class="line">            res.<span class="title function_">end</span>(<span class="string">&#x27;ok&#x27;</span>)</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">if</span> (req.<span class="property">method</span> === <span class="string">&#x27;DELETE&#x27;</span>) &#123;</span><br><span class="line">            <span class="variable language_">console</span>.<span class="title function_">log</span>(req.<span class="property">body</span>);</span><br><span class="line">            res.<span class="title function_">end</span>(<span class="string">&#x27;OK&#x27;</span>)</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
</li>
<li><p>test.html</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">let</span> xhr = <span class="keyword">new</span> <span class="title class_">XMLHttpRequest</span>();</span><br><span class="line">        xhr.<span class="title function_">open</span>(<span class="string">&#x27;DELETE&#x27;</span>, <span class="string">&#x27;http://localhost:8080/user&#x27;</span>, <span class="literal">true</span>);</span><br><span class="line">        <span class="comment">// 默认get和post请求是简单请求，我们设置了自定义的header 复杂请求 （内置的header不会变为复杂请求)</span></span><br><span class="line">        xhr.<span class="title function_">setRequestHeader</span>(<span class="string">&#x27;authorization&#x27;</span>, <span class="string">&#x27;aaa&#x27;</span>)</span><br><span class="line">        xhr.<span class="property">onload</span> = <span class="keyword">function</span> (<span class="params"></span>) &#123;</span><br><span class="line">            <span class="variable language_">console</span>.<span class="title function_">log</span>(xhr.<span class="property">response</span>)</span><br><span class="line">        &#125;</span><br><span class="line">        xhr.<span class="title function_">send</span>();</span><br></pre></td></tr></table></figure>
</li>
<li><p>zip</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> zlib = <span class="built_in">require</span>(<span class="string">&#x27;zlib&#x27;</span>);</span><br><span class="line"><span class="keyword">const</span> fs = <span class="built_in">require</span>(<span class="string">&#x27;fs&#x27;</span>);</span><br><span class="line"><span class="comment">// 原理就是将内容进行替换 重复性越高的内容，压缩后越小  大文件视频也不适合gzip方式</span></span><br><span class="line"><span class="comment">// let buffer = fs.readFileSync(&#x27;./1.txt&#x27;);</span></span><br><span class="line"><span class="comment">// 一般情况 js  css 都会去做gzip压缩 让体积变小</span></span><br><span class="line"><span class="comment">// zlib.gzip(buffer, function (err, result) &#123;</span></span><br><span class="line"><span class="comment">//     console.log(err)</span></span><br><span class="line"><span class="comment">//     fs.writeFileSync(&#x27;./2.txt.gz&#x27;, result)</span></span><br><span class="line"><span class="comment">// &#125;)</span></span><br><span class="line">fs.<span class="title function_">createReadStream</span>(<span class="string">&#x27;1.txt&#x27;</span>).<span class="title function_">pipe</span>(zlib.<span class="title function_">createGzip</span>()).<span class="title function_">pipe</span>(fs.<span class="title function_">createWriteStream</span>(<span class="string">&#x27;./2.txt.gz&#x27;</span>))</span><br></pre></td></tr></table></figure></li>
</ul>
<h2 id="http中的重点在于报文"><a href="#http中的重点在于报文" class="headerlink" title="http中的重点在于报文"></a>http中的重点在于报文</h2><ul>
<li><p>简单描述一下 请求的发送 “域名”  <a target="_blank" rel="noopener" href="http://www.baidu.com/">www.baidu.com</a>  解析成ip地址  192.168.x.x   “DNS解析服务”</p>
</li>
<li><p>顶级域名  根dns服务器可以进行域名解析  （域名解析的时候采用的是DNS 方向递归查找，找到对应的服务）</p>
</li>
<li><p>状态码：  服务器设置 （但是是约定的）</p>
<ul>
<li>101 websocket  升级 更新</li>
<li>200 200 成功 204 没有响应体 206范围请求 （可以实现断点续传，播放视频）</li>
<li>3xx 301(永久重定向  确定好了定向的目标永远指向到那里) 302 （临时跳转） 307类似（临时重定向）  304 缓存 协商缓存</li>
<li>400 400 客户端代码出错  401 （没有登录 没有权限） 403 （登录过没有权限）  404 找不到  405 （方法不允许）  415 服务器不支持的格式</li>
<li>500 服务端出错 502 、 504 没有响应   503 请求超载</li>
</ul>
</li>
<li><p>准备好请求报文   </p>
<ul>
<li>请求行 请求的方法 路径 版本号</li>
<li>请求头 描述我们发送数据的格式，可以携带一些信息 （重点）</li>
<li>请求体 表单 a&#x3D;b&amp;b&#x3D;c&amp;c&#x3D;d  json 格式   二进制数据格式</li>
</ul>
</li>
<li><p>安全？ http1.1 没有考虑按问题 https 数据进行指纹验证，秘钥。。。</p>
</li>
<li><p>准备好的数据 要经过传输层进行传输 tcp  将数据进行分段传输 增加序号 。。。。。</p>
</li>
<li><p>找到对方 ip层 通过路由跳转和寻址找到对方 </p>
</li>
<li><p>通过物理设备进行传输 </p>
</li>
<li><p>服务端收到消息后 会进行拆包</p>
</li>
<li><p>准备好响应报文</p>
<ul>
<li>响应行 状态码 相应短语  版本号</li>
<li>响应头 描述响应内容的</li>
<li>响应体 具体的响应内容</li>
</ul>
</li>
</ul>
<h2 id="实现一个http-server"><a href="#实现一个http-server" class="headerlink" title="实现一个http-server"></a>实现一个http-server</h2><p>可以在本地启动一个静态服务 </p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://gitee.com/wieldy/bailment-blog/2022/03/29/http/" data-id="cljmgj1ew000gzc9j70op0qbd" data-title="http" class="article-share-link">Share</a>
      
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/bailment-blog/2022/03/29/fs/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          fs
        
      </div>
    </a>
  
  
    <a href="/bailment-blog/2022/03/29/http%E6%89%8B%E5%86%99/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">http</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/bailment-blog/archives/2023/07/">July 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/bailment-blog/archives/2023/06/">June 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/bailment-blog/archives/2023/04/">April 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/bailment-blog/archives/2023/03/">March 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/bailment-blog/archives/2022/03/">March 2022</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/bailment-blog/2023/07/03/%E5%B7%A5%E4%BD%9C%E6%97%A5%E5%BF%97/">工作日志</a>
          </li>
        
          <li>
            <a href="/bailment-blog/2023/06/29/payMent/">payMent</a>
          </li>
        
          <li>
            <a href="/bailment-blog/2023/06/20/%E7%BD%91%E7%BA%A2%E9%9D%A2%E8%AF%95%E9%A2%98/">原理题</a>
          </li>
        
          <li>
            <a href="/bailment-blog/2023/06/19/%E5%89%8D%E7%AB%AF%E5%A4%A7%E5%B1%8F%E8%87%AA%E9%80%82%E5%BA%94%E6%96%B9%E6%B3%95/">前端大屏自适应方法</a>
          </li>
        
          <li>
            <a href="/bailment-blog/2023/06/17/10%E4%B8%AAJavaScript%E5%B8%B8%E8%A7%81%E9%AB%98%E7%BA%A7%E7%9F%A5%E8%AF%86%E7%82%B9/">10个JavaScript常见高级知识点</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2023 John Doe<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/bailment-blog/" class="mobile-nav-link">Home</a>
  
    <a href="/bailment-blog/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/bailment-blog/js/jquery-3.4.1.min.js"></script>



  
<script src="/bailment-blog/fancybox/jquery.fancybox.min.js"></script>




<script src="/bailment-blog/js/script.js"></script>





  </div>
</body>
</html>